class Twitter < ActiveRecord::Base
  belongs_to :user
  default_scope -> {order(created_at: :desc)}

  validates :user_id,presence: true
  validates :content,presence: true,length: {maximum:300}

end
